import request from '@/utils/request'

export function showApplyMedicalList(query) {
  return request({
    url: '/apply/medical/show',
    method: 'get',
    params: query
  })
}

export function showApplyRightList(query) {
  return request({
    url: '/apply/right/show',
    method: 'get',
    params: query
  })
}

export function handleApplyMedical(data) {
  return request({
    url: '/apply/medical/handle',
    method: 'post',
    data
  })
}

export function handleApplyRight(data) {
  return request({
    url: '/apply/right/handle',
    method: 'post',
    data
  })
}

export function getApplyOpenStatus() {
  return request({
    url: '/apply/medical/open/show',
    method: 'get'
  })
}

export function setApplyOpenStatus(data) {
  return request({
    url: '/apply/medical/open/set',
    method: 'post',
    data
  })
}
